import COMMON_VALUE from 'Common'
var skillClass = require('skillClass')
var UserData = require('UserData')

var chefClass = cc.Class({
    name:"chefClass",
    ctor: function () {
        this.basicData = {
        "lame": "test",
        "chefID": "test",
        "gender": "test",
        "birthday": "test",
        "age": "test",
        "goodAt": "test",
        "lines":"test",
        "description":"test"
        }
        this.skillList = [new skillClass(),new skillClass(),new skillClass(),new skillClass()]
    },
    properties:{
        basicData:{
            default:null,
            type:cc.Object,
        },
        restaurantType:{
            default: COMMON_VALUE.RESTAURANT_TYPE.NONE,
            type: COMMON_VALUE.RESTAURANT_TYPE
        },
        skillList:{
            default:[],
            type:Array,
        },
        floor:1,
        level:0,  
        gainBaseNumber:1,
        gainMultiply:1,
        gainMultiplierList:{//[[等级，倍数],[等级，倍数],[等级，倍数]...]
            default:[],
            type:Array,
        },
        //cost //EXP： PerLevel = costMultiply * costBaseNumber ^ level ;
        costBaseNumber:1.07,       
        costMultiply:1,
        skillLearnt:[],

    },

})
module.exports = chefClass